package team.zero.lemon.module.cms.dao;

import org.apache.ibatis.annotations.Param;
import team.zero.lemon.common.persistence.ICrudDao;
import team.zero.lemon.common.persistence.annotation.MyBatisDao;
import team.zero.lemon.module.cms.entity.Audit;

import java.util.List;

@MyBatisDao
public interface IAuditDao extends ICrudDao<Audit> {
    List<Audit> findByArticleId( @Param("articleId") int articleId,@Param("auditType") Integer auditType);
    int deleteByArticleId(@Param("articleId") int articleId);
}